<?php
/* @var $this ProposalController */
/* @var $model Proposal */
/* @var $form TbActiveForm */
?>

<div class="form">

    <?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id'=>'proposal-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>


    <?php echo $form->errorSummary($model); ?>
    
			<?php if(Yii::app()->user->isGuest) echo $form->textFieldControlGroup($model,'email',array('span'=>5,'maxlength'=>512,'label'=>Yii::t('proposal_messages','proposal.email'))); ?> 
    
            <?php echo $form->textFieldControlGroup($model,'name',array('span'=>5,'maxlength'=>256,'label'=>Yii::t('proposal_messages','proposal.bug.name'))); ?>

            <?php echo $form->textFieldControlGroup($model,'url',array('span'=>5,'maxlength'=>256,'label'=>Yii::t('proposal_messages','proposal.bug.url'))); ?>
            
            <?php echo $form->textAreaControlGroup($model,'description',array('span' => 6, 'rows' => 6,'maxlength'=>2048,'label'=>Yii::t('proposal_messages','proposal.other.description'))); ?>
			
             <?php echo CHtml::hiddenField('proposalType' , '4'); ?>

        <div class="row button">
        <?php echo TbHtml::submitButton(Yii::t('default','Submit'),array(
		    'color'=>TbHtml::BUTTON_COLOR_PRIMARY,
		    'size'=>TbHtml::BUTTON_SIZE_DEFAULT,
		)); ?>
    </div>
    

    <?php $this->endWidget(); ?>

</div><!-- form -->